package cn.tedu.start.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 类名: PetshopConfig
 * 说明：
 *
 * @author :Wind
 * @time 2022 五月 14 13:25
 **/
@Component
@ConfigurationProperties(prefix = "start")
public class PetshopConfig {
    /**
     * 项目名称
     */
    private static String name;
    /**
     * 版本号
     */
    private static String versionNumber;
    /**
     * jwt头
     */
    private String header;
    /**
     * jwt秘钥
     */
    private String secret;
    /**
     * 令牌有效期
     */
    private Integer expireTime;

    public static String getName() {
        return name;
    }

    /**
     * 设置 name
     */
    public static void setName(String name) {
        PetshopConfig.name = name;
    }

    public static String getVersionNumber() {
        return versionNumber;
    }

    /**
     * 设置 versionNumber
     */
    public static void setVersionNumber(String versionNumber) {
        PetshopConfig.versionNumber = versionNumber;
    }

    public String getHeader() {
        return header;
    }

    /**
     * 设置 header
     */
    public void setHeader(String header) {
        this.header = header;
    }

    public String getSecret() {
        return secret;
    }

    /**
     * 设置 secret
     */
    public void setSecret(String secret) {
        this.secret = secret;
    }

    public Integer getExpireTime() {
        return expireTime;
    }

    /**
     * 设置 expireTime
     */
    public void setExpireTime(Integer expireTime) {
        this.expireTime = expireTime;
    }
}
